home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4662 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: easy.in-chemnitz.de!mkmk!floh
  2. From: floh@mkmk.in-chemnitz.de (Andre Weissflog)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: screenmode + screen opening??
  5. Message-ID: <Uj6by*BG0@mkmk.in-chemnitz.de>
  6. Date: Sat, 02 Mar 1996 19:39:36 CET
  7. Reply-To: floh@mkmk.in-chemnitz.de
  8. References: <4h6pu4$1kt@ramus.apana.org.au>
  9. Distribution: world
  10. Organization: private uucp site
  11. X-Newsreader: Arn V 1.04
  12.  
  13. In article <4h6pu4$1kt@ramus.apana.org.au>, Bob Rye writes:
  14.  
  15. > hiya. got a question about screenmodes and screen opening
  16. > in C. i have a screen to open, based on available
  17. > and chosen screenmodes. this screen could be an ECS
  18. > screen or a Picasso 800x600x256 etc.
  19. > i am using the ASL screenmode req to find this:
  20. > DisplayInfoHandle = (FindDisplayInfo(fr->sm_DisplayID));
  21. > now, where do i use this information to help open this
  22. > screen? do i poke this displayinfohandle somewhere in
  23. > the newscreen struct? help! :)
  24.  
  25. Better use OpenScreenTags():
  26.  
  27.     struct Screen *scr;
  28.     scr = OpenScreenTags(NULL,
  29.                          SA_DisplayID, smreq->sm_DisplayID,
  30.                          SA_Width,     smreq->sm_DisplayWidth,
  31.                          SA_Height,    smreq->sm_DisplayHeight,
  32.                          /* etc... */
  33.                          TAG_DONE);
  34.  
  35. Bye,
  36. -Floh.
  37.  
  38. ====//=== Andre Weissflog <floh@mkmk.in-chemnitz.de> =======
  39. ...// Sep'95: Return Of The Living Death...................
  40. \\// 90% of everything is crap (Sturgeon's Law)...........
  41. =\\===============================================Amiga!=
  42.  
  43.